//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    title: '测试结果',
    score: 0,
    loading: false
  },
  onLoad: function () {
    const totalResult = wx.getStorageSync('paperResultInfo')
    this.setData({
      score: totalResult.score
    })
  },
  add: function (e) {
    wx.navigateTo({
      url: '/pages/index/index'
    })
  },
  remove: function (e) {
    if (extraLine.length > 0) {
      extraLine.pop()
      this.setData({
        text: initData + '\n' + extraLine.join('\n')
      })
    }
  }
})
